/**
 * @Author MrsGuo
 * version 1.0
 * @Date 2023-08-03 14:49
 */
package com.cl.erp_2301.mapper;

import com.cl.erp_2301.dto.EmpDTO;
import com.cl.erp_2301.entity.Department;
import com.cl.erp_2301.entity.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmpMapper {
    List<EmpDTO> findAll();
    Emp getEmpById(Integer id);
    List<EmpDTO> listByPage();
    List<Department> department();
    void add(EmpDTO empDTO);
    void delete();
    void updateById(EmpDTO empDTO);
}
